package shun.demo.remote.touch;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import shun.demo.R;
import shun.demo.remote.touch.client.TouchClientActivity;
import shun.demo.remote.touch.server.ServerActivity;

/**
 * Created by chen on 14-4-26.
 */
public class RemoteTouchActivity extends Activity implements View.OnClickListener {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.remote_touch);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.client:
                Intent intent = new Intent(this, TouchClientActivity.class);
                startActivity(intent);
                break;
            case R.id.server:
                Intent intent1 = new Intent(this, ServerActivity.class);
                startActivity(intent1);
                break;
        }
    }
}